Short-circuit if trying to open an nonexistant modal.
Fix indentation on JSDoc.
If modals are not fully initialized, save queued modal for when they are.

This prevents an issue that occurred when programmatically showing a
modal on page load.
Fixed linting errors.
Merge pull request #356 from DFurnes/modal-bugs

Modal bug squashing