Throw exception if context is null in ViewElementListHandler