Changed the stack to return null when popping on an empty stack, no errors are thrown.