Fixed Initial Login Error when there is no plans created. 

Added Conditional arguments retrieval logic to avoid AttributeError when it plans object is empty dict.