Perform all stack related commands in performOnStack which doesn't crash when requested stack is no found